﻿/*
   Copyright 2012 Dmitry Bratus

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/

namespace Flower.Services.Data
{
    /// <summary>
    /// Visitor for the directory entries class hierarchy.
    /// </summary>
    public interface IDirectoryEntryVisitor
    {
        /// <summary>
        /// Visit for assembly.
        /// </summary>
        /// <param name="assembly">Visited object.</param>
        void Visit(Assembly assembly);

        /// <summary>
        /// Visit for folder
        /// </summary>
        /// <param name="folder">Visited object.</param>
        void Visit(Folder folder);

        /// <summary>
        /// Visit for link.
        /// </summary>
        /// <param name="link">Visited object.</param>
        void Visit(Link link);

        /// <summary>
        /// Visit for message.
        /// </summary>
        /// <param name="message">Visited object.</param>
        void Visit(Message message);

        /// <summary>
        /// Visit for process.
        /// </summary>
        /// <param name="process">Visited object.</param>
        void Visit(Process process);

        /// <summary>
        /// Visit for processor.
        /// </summary>
        /// <param name="processor">Visited object.</param>
        void Visit(Processor processor);

        /// <summary>
        /// Visit for role.
        /// </summary>
        /// <param name="role">Visited object.</param>
        void Visit(Role role);

        /// <summary>
        /// Visit for services container.
        /// </summary>
        /// <param name="serviceContainer">Visited object.</param>
        void Visit(ServiceContainer serviceContainer);

        /// <summary>
        /// Visit for set.
        /// </summary>
        /// <param name="set">Visited object.</param>
        void Visit(Set set);

        /// <summary>
        /// Visit for state.
        /// </summary>
        /// <param name="state">Visited object.</param>
        void Visit(State state);

        /// <summary>
        /// Visit for workflow.
        /// </summary>
        /// <param name="workflow">Visited object.</param>
        void Visit(Workflow workflow);

        /// <summary>
        /// Visit for directory entry info.
        /// </summary>
        /// <param name="directoryEntryInfo">Visited object.</param>
        void Visit(DirectoryEntryInfo directoryEntryInfo);
    }
}
